//
//  Card.swift
//  test
//
//  Created by zoushaoshao on 2018/11/29.
//  Copyright © 2018 TT. All rights reserved.
//

import Foundation

struct Card {
    
    var isFaceUp = false
    var isMatched = false
    var identifier : Int
    
    
    static var identifierIndex = 0
   static func getIdentifierIndex() -> Int {
    identifierIndex += 1
        return identifierIndex
    }
    
    init() {
        self.identifier = Card.getIdentifierIndex()
    }
    
    
}
